package org.ktlab.feature;

import java.util.ArrayList;
import java.util.List;

public class Feature {
	/**
	 * Class variables
	 */
	private String type; //Maybe 'tngt', 'chayno', 'cuop', 'giet', 'hiep'
	private List<String> featureList = new ArrayList<String>();
	/**
	 * No-agrument
	 */
	public Feature() {
		super();
	}
	/**
	 * @param type
	 * @param featureList
	 */
	public Feature(String type, List<String> featureList) {
		super();
		this.type = type;
		this.featureList = featureList;
	}
	/**
	 * @return the type
	 */
	public String getType() {
		return type;
	}
	/**
	 * @param type the type to set
	 */
	public void setType(String type) {
		this.type = type;
	}
	/**
	 * @return the featureList
	 */
	public List<String> getFeatureList() {
		return featureList;
	}
	/**
	 * @param featureList the featureList to set
	 */
	public void setFeatureList(List<String> featureList) {
		this.featureList = featureList;
	}
	
	/**
	 * add a feature to feature list
	 */
	public void addFear(String f) {
		this.featureList.add(f);
	}
	/**
	 * Make fearture list to be clear
	 */
	public void clearFearList() {
		this.featureList.clear();
	}
}